 $(function(){
    var mySwiper = new Swiper(".container1" , {
        // 无限循环播放; 
        loop : true,
        navigation: {
              nextEl: '.swiper-button-next',
              prevEl: '.swiper-button-prev',
        },
        pagination : {
              el : ".swiper-pagination",
              clickable : true                        
        },
        autoplay : {
              disableOnInteraction: true,
              pauseOnMouseEnter: true,
        },
        parallax : true,
        effect : "fade"
  });
  // 找到dom对象给dom对象绑定事件; 
  mySwiper.pagination.bullets.each( function( el ){
       el.onmouseover = function(){
             this.click();
       }
  })

  var container1 = document.querySelector(".container1");
  container1.onmouseover = function(){
        mySwiper.autoplay.stop();
  }
  container1.onmouseout = function(){
        mySwiper.autoplay.start();
  }

  
  var mySwiper2 = new Swiper(".container2")
 })
